package com.gosophia.conference.action.common;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.security.context.SecurityContextHolder;
import org.springframework.stereotype.Controller;

import com.gosophia.commons.web.action.BaseSupportAction;
import com.gosophia.conferenceManagement.common.ws.ConferenceQueryWebService;
import com.gosophia.conferenceManagement.starting.dto.ConferenceStartingDTO;
import com.gosophia.springsecurity.UserDetailsImpl;
import com.gosophia.taskManagement.ws.TaskManagementWebService;
import com.gosophia.userManagement.dto.UserInfoDTO;
import com.gosophia.userManagement.ws.UserManagementWebService;

@Scope("prototype")
@Controller("GetConferenceUserInfoAllAction")
public class GetConferenceUserInfoAllAction extends BaseSupportAction{

	private static final long serialVersionUID = 188780888656710659L;
	
	private Long jobId;
	
	@Autowired
	private UserManagementWebService userManagementWebService;

	private List<UserInfoDTO> userInfoDTO = new ArrayList<UserInfoDTO>();
	
	@Override
	public String _execute() throws Exception {
		userInfoDTO = userManagementWebService.findAllUserInfoHasAccount();
		return SUCCESS;
	}

	public List<UserInfoDTO> getUserInfoDTO() {
		return userInfoDTO;
	}

	public void setUserInfoDTO(List<UserInfoDTO> userInfoDTO) {
		this.userInfoDTO = userInfoDTO;
	}

	public void setJobId(Long jobId) {
		this.jobId = jobId;
	}

	public Long getJobId() {
		return jobId;
	}

    	
}
